package org.peron.gift.clients;

import org.peron.gift.clients.fallback.OrderClientFallback;
import org.person.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther Stark
 * @Date 2024/02/24
 */
@FeignClient(value = "gift-order",fallback = OrderClientFallback.class)
public interface OrderClient {

    @GetMapping("/orderGift/parentOrderNo/{parentOrderNo}")
    AjaxResult getOrderByParentOrderNo(@PathVariable("parentOrderNo")String parentOrderNo);

}
